﻿@using Abp.Runtime.Session
@using MyCompanyName.AbpZeroTemplate.Web.Areas.AppAreaName.Models.Layout
@using MyCompanyName.AbpZeroTemplate.Web.Areas.AppAreaName.Views.Shared.Components.AppAreaNameLogo
@model HeaderViewModel
@{
    Layout = null;
}

<div class="kt-header__brand   kt-grid__item" id="kt_header_brand">
    <div class="kt-header__brand-logo">
        <a href="@Url.Action("Index", "Home", new {area = string.Empty})" target="_blank">
            @if (AbpSession.TenantId == null || Model.LoginInformations?.Tenant?.LogoId == null)
            {
                <img src="/Common/Images/app-logo-on-dark.svg" alt="logo" height="38" class="kt-header__brand-logo-default" />
                <img src="/Common/Images/app-logo-on-light.svg" alt="logo" height="38" class="kt-header__brand-logo-sticky" />
            }
            else
            {
                @await Component.InvokeAsync(typeof(AppAreaNameLogoViewComponent))
            }
        </a>
    </div>
</div>